<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php if(is_home()) { echo bloginfo('name'); } else { wp_title(''); } ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>

<?php include (TEMPLATEPATH . '/sys/scripteria.php'); ?>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/pngfix.js"></script>
<link type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ihateie6.css" rel="stylesheet" />
<![endif]-->
</head>
<body>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/tooltip.js"></script>

<div class="header">

	<div class="header_left_box">

		<div class="header_top_navigation">
		</div>
	
		<div class="header_navigation">
		
			<div class="header_search"><a href="#mb_search" rel="lightbox[inline 500 180]"></a>
			</div>
			
			

				<div id="mb_search" class="searchformframe" style="display:none; ">
			<div class="searchformframe">
				  <form id="searchform" method="get" action="<?php bloginfo('home'); ?>/index.php">
			   
					<input class="searchpop" type="text" name="s" id="s" size="15" />
					<input class="searchpopbutton" type="submit" value="Search" />
			
				 </form>
			</div>
				</div>	
				
			
			

			<?php if ( $user_ID ) :global $user_identity; ?>
			<div class="header_logout"><a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>"></a>
			</div>
			<?php else : ?>
			<div class="header_login"><a href="#mb_login" rel="lightbox[inline 295 300]"></a>
			</div>
			
			
	
				<div id="mb_login" style="display:none;">
		
						<?php include (TEMPLATEPATH . '/sys/login.php'); ?>
	
				</div>

			
			<?php endif; ?>
		
			<ul id="dropdown" class="dropdown">
			
				<li><a href="<?php bloginfo('home'); ?>">Home</a></li>
				
				<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
		   
		    </ul>
			
		</div>
		
	</div>
	
	<div class="header_logo" style="background:url(<?php if ($exehill_theme_logo) { echo $exehill_theme_logo; } else { ?><?php bloginfo ('template_directory'); ?>/images/logo.png<?php } ?>) no-repeat; "><a href="<?php bloginfo('home'); ?>"></a>
	</div>
	
	<div class="clear">
	</div>

</div>